package cn.topcodes.tcsf.wechat.domain.entity;

import cn.topcodes.tcsf.admin.commons.domain.IdEntity;
import lombok.Data;
import javax.persistence.Table;

/**
 * 微信公众号
 * @author Unicorn
 * @date 2018-03-20 15:56:30
 */
@Data
@Table(name="t_wechat_mp")
public class WechatMp extends IdEntity {
	
	public static final String FIELD_NAME = "name";

	public static final String FIELD_APP_ID = "appId";

	public static final String FIELD_SECRET = "secret";

	public static final String FIELD_MP_ID = "mpId";

	public static final String FIELD_MP_URL = "mpUrl";

	public static final String FIELD_TOKEN = "token";

	public static final String FIELD_TOKEN_EXPIRES = "tokenExpires";

	public static final String FIELD_LAST_GET_TOKEN_TIMEMILLIS = "lastGetTokenTimemillis";

	public static final String FIELD_JS_TICKET = "jsTicket";

	public static final String FIELD_JS_TICKET_EXPIRES = "jsTicketExpires";

	public static final String FIELD_LAST_GET_JS_TICKET_TIMEMILLIS = "lastGetJsTicketTimemillis";

	public static final String FIELD_OPEN_APP_ID = "openAppId";

	public static final String FIELD_OPEN_SECRET = "openSecret";


	/**
	 * 公众号名称
	 */
	private String name;

	/**
	 * 公众号AppId
	 */
	private String appId;

	/**
	 * 公众号Secret
	 */
	private String secret;

	/**
	 * 公众号ID
	 */
	private String mpId;

	/**
	 * 公众号地址
	 */
	private String mpUrl;

	/**
	 * 公众号Token
	 */
	private String token;

	/**
	 * 公众号Token过期秒数
	 */
	private Integer tokenExpires;

	/**
	 * 最后获取公众号Token时间
	 */
	private Long lastGetTokenTimemillis;

	/**
	 * 公众号网页JsTicket
	 */
	private String jsTicket;

	/**
	 * 	公众号网页JsTicket过期秒数
	 */
	private Integer jsTicketExpires;

	/**
	 * 最后获取公众号网页JsTicket时间
	 */
	private Long lastGetJsTicketTimemillis;

	/**
	 * 开放平台AppId
	 */
	private String openAppId;

	/**
	 * 开放平台Secret
	 */
	private String openSecret;
	

}